package cn.zhuama.basic.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageList<T> {
    private Long totals = 0L;
    private List<T> data = new ArrayList<>();  //防止没有查数据，data = null  前端null遍历   []
}
//@Data
//@AllArgsConstructor
//@NoArgsConstructor
//public class  PageList<T>{
//    private  Integer totals =0;
//    private  List<T> data = new ArrayList<>();
//}